Skip to content

feat(deps): Upgrade React Native to 0.80.1 #1237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 54 commits into from
Jul 21, 2025
Merged

Conversation

subhankarmaiti
Copy link
Contributor

This PR upgrades the project and its example app from React Native 0.79.2 to 0.80.1.

Key Changes

  • Dependencies:
    • Upgraded react-native to 0.80.1 and react to 19.1.0.
    • Updated all related dev dependencies like @react-native-community/cli and @react-native/babel-preset.
  • Android:
    • Upgraded Gradle to 8.14.1 and Kotlin to 2.1.20.
    • Updated MainApplication.kt to use the modern loadReactNative entry point.
  • iOS:
    • Updated Podfile.lock with all pod dependencies compatible with RN 0.80.1.
  • Tooling:
    • Added a standard example/tsconfig.json required by the new React Native version.
  • Lockfile:
    • Updated yarn.lock to reflect all dependency changes.

guabu and others added 30 commits April 2, 2025 12:39
This commit introduces the core business logic layer, which orchestrates authentication flows in a platform-agnostic way.

These services operate exclusively on the previously defined interfaces and depend on an injected `HttpClient` to perform their work, making them completely decoupled from the underlying platform.
This commit introduces the factory layer, which is responsible for detecting the runtime environment and creating the appropriate platform-specific client. This is the central hub that connects the public API to the correct platform implementation.
This commit introduces the complete, self-contained module for the native (iOS/Android) platform. It defines the bridge for communicating with the native code and a set of adapters that implement the core library interfaces by delegating calls to the bridge.
This commit introduces the complete implementation for the web platform. It uses the Adapter pattern to wrap the `@auth0/auth0-spa-js` library, making it conform to our internal `IAuth0Client` interface and providing a consistent API surface.
This commit introduces the complete implementation for the web platform. It uses the Adapter pattern to wrap the `@auth0/auth0-spa-js` library, making it conform to our internal `IAuth0Client` interface and providing a consistent API surface.
This commit adds a full suite of co-located unit and integration tests for the new architecture, validating every layer from the core utilities to the platform adapters and hooks.

All legacy test cases have been migrated to test their new component counterparts, ensuring functional parity. Global mocks are now handled via a `__mocks__` directory for a cleaner test setup.
- Deleted `addDefaultLocalAuthOptions.ts`, `baseError.ts`, `camel.ts`, `deepEqual.ts`, `fetchWithTimeout.ts`, `nativeHelper.ts`, `timestampConversion.ts`, `userConversion.ts`, and `whitelist.ts` as they are no longer needed.
- Removed mock files for `auth0.js` and `react-native.js` as they are obsolete.
- Cleared out test files `webauth.spec.js`, `agent.spec.js`, and snapshot files as they are no longer relevant.
- Removed the `Agent` and `WebAuth` classes along with their associated methods and types, streamlining the authentication process.
- Created Button component for reusable button UI.
- Added Header component for consistent header display.
- Implemented LabeledInput component for labeled text input fields.
- Developed Result component to display API call results and errors.
- Created UserInfo component to show user profile information.
- Set up AuthStackNavigator for unauthenticated user navigation.
- Established ClassDemoNavigator for class-based demo navigation.
- Implemented HooksDemoNavigator for hooks-based demo navigation.
- Created MainTabNavigator for authenticated user tab navigation.
- Developed RootNavigator to manage overall app navigation.
- Added SelectionScreen for initial demo selection.
- Implemented ClassApiTestsScreen for direct API testing in class-based demo.
- Created ClassLoginScreen for class-based user login.
- Developed ClassProfileScreen to display user profile in class-based demo.
- Added ApiScreen for API calls in hooks-based demo.
- Implemented HomeScreen for hooks-based demo login options.
- Created MoreScreen for additional authentication methods in hooks-based demo.
- Developed ProfileScreen to manage user profile and credentials in hooks-based demo.
…hProvider to use Auth0Client directly and add unit tests for WebWebAuthProvider
@subhankarmaiti subhankarmaiti marked this pull request as ready for review July 15, 2025 04:28
@subhankarmaiti subhankarmaiti requested a review from a team as a code owner July 15, 2025 04:28
Base automatically changed from refactor_v5 to master July 21, 2025 08:32
kailash-b
kailash-b previously approved these changes Jul 21, 2025
@subhankarmaiti subhankarmaiti merged commit ac64396 into master Jul 21, 2025
4 checks passed
@subhankarmaiti subhankarmaiti deleted the SDK-6188-rn-upgrade branch July 21, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants